/*
 * 登陆
 */

'use strict';
require(['./config'], function() {
    // 全局加入replaceAll
    String.prototype.replaceAll = function(reallyDo, replaceWith, ignoreCase) {
        if (!RegExp.prototype.isPrototypeOf(reallyDo)) {
            return this.replace(new RegExp(reallyDo, (ignoreCase ? "gi" : "g")), replaceWith);
        } else {
            return this.replace(reallyDo, replaceWith);
        }
    }
    require(['jquery'], function($) {
        window.j$ = $;
        require(['moment', 'underscore'], function(moment, _) {
            window.moment = moment;
            window._ = _;
            require(['language'], function(I18N) {
                window.I18N = I18N;
                require(['./modules/common/kit'], function(kit) {
                    window.kit = kit;
                    window.Kit = kit;
                    require(['./modules/business/user/login'], function() {});
                })
            })
        })
    })
});
